﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;

/// <summary>
/// Summary description for ShoppingCart
/// </summary>
public class ShoppingCartBOL
{
	public ShoppingCartBOL()
	{
		//
		// TODO: Add constructor logic here
		//
	}
    public DataTable LoadShoppingcart()
    {
        ShoppingCartDAL sDAL = new ShoppingCartDAL();
        try
        {
            return sDAL.LoadShoppingcart();
        }
        catch
        {
            throw;
        }
    }
    public int insertShoppingcart(ShoppingCart s)
    {
        ShoppingCartDAL sDAL = new ShoppingCartDAL();
        try
        {
            return sDAL.insertShoppingcart(s);
        }
        catch
        {
            throw;
        }
        finally
        {
            sDAL = null;
        }
    }
    public int updateShopingcart(ShoppingCart s)
    {
        ShoppingCartDAL sDAL = new ShoppingCartDAL();
        try
        {
            return sDAL.updateShoppingcart(s);
        }
        catch
        {
            throw;
        }
        finally
        {
            sDAL = null;
        }
    }
    public int deleteShoppingcart(ShoppingCart s)
    {
        ShoppingCartDAL sDAL = new ShoppingCartDAL();
        try
        {
            return sDAL.deleteShoppingcart(s);
        }
        catch
        {
            throw;
        }
        finally
        {
            sDAL = null;
        }
    }
}